import 'package:get/get.dart';
import 'package:getx_example/pages/home/index.dart';
import 'package:getx_example/pages/list/index.dart';
import 'package:getx_example/pages/list_detail/index.dart';

part 'app_routes.dart';

class AppPages {
  static const INITIAL = AppRoutes.Home;

  static final routes = [
    // Home -> List -> Detail
    GetPage(name: AppRoutes.Home, page: () => const HomeView(), children: [
      GetPage(name: AppRoutes.List, page: () => const ListView(), children: [
        GetPage(name: AppRoutes.Detail, page: () => const DetailView())
      ])
    ]),
  ];
}
